package com.woniuxy.yoga.course.client;

import com.woniuxy.yoga.coach.dao.model.Coach;
import com.woniuxy.yoga.commons.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 教练的服务访问类
 */
@FeignClient(name = "coach-service",path = "/coach")
public interface CoachClient {

    /**
     * 根据ID查询教练信息
     * @param coachId
     * @return
     */
    @GetMapping("/coach/getById/{coachId}")
    public Result<Coach> getCoachById(@PathVariable("coachId") Integer coachId);
}
